Minimize difference is median
$ \argmin_x \sum | A_i - x | = \mathrm{median}(A)
---
This page is auto-translated from /nishio/差の最小化は中央値. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.